/* ==========================================
   DARK THEME: BLACK, BLUE & WHITE BASE
   ========================================== */

/* Layout & Page Container */
.blog-wrapper-section {
    padding: 60px 0 100px 0;
    background-color: #0b0f19; /* Deep Black/Dark-Blue background */
    min-height: 100vh;
    color: #ffffff;
}

/* Article Card Container */
.blog-article-wrapper {
    max-width: 820px;
    margin: 0 auto;
    background: #111827; /* Dark slate-black card */
    padding: 40px 48px;
    border-radius: 16px;
    border: 1px solid #1f293d; /* Subtle dark-blue border */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

@media (max-width: 768px) {
    .blog-article-wrapper {
        padding: 24px 20px;
        border-radius: 10px;
    }
}

/* Header & Meta Area */
.blog-category-badge {
    display: inline-block;
    background: rgba(37, 99, 235, 0.15); /* Translucent Blue */
    color: #60a5fa; /* Vibrant Blue Text */
    border: 1px solid rgba(59, 130, 246, 0.3);
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 4px 14px;
    border-radius: 999px;
    margin-bottom: 18px;
}

.blog-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #ffffff; /* Pure White */
    line-height: 1.25;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

@media (max-width: 768px) {
    .blog-title {
        font-size: 1.85rem;
    }
}

.blog-lead {
    font-size: 1.2rem;
    color: #cbd5e1; /* Off-white / light slate */
    line-height: 1.6;
    margin-bottom: 24px;
}

.blog-meta-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: #94a3b8; /* Muted cool grey */
    padding-bottom: 24px;
    border-bottom: 1px solid #1f293d;
    margin-bottom: 32px;
}

.meta-dot {
    color: #475569;
}

/* Featured Media */
.blog-featured-media {
    margin: 0 0 40px 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #1e293b;
    max-height: 460px;
}

.blog-featured-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Gemini Output & Blog Body Typography */
.blog-body {
    font-size: 1.125rem;
    line-height: 1.85;
    color: #e2e8f0; /* Soft White */
}

.blog-body h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #ffffff;
    margin-top: 42px;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
    border-bottom: 1px solid #1e293b;
    padding-bottom: 8px;
}

.blog-body h3 {
    font-size: 1.35rem;
    font-weight: 600;
    color: #93c5fd; /* Soft Blue accent */
    margin-top: 30px;
    margin-bottom: 12px;
}

.blog-body p {
    margin-bottom: 22px;
}

.blog-body ul, 
.blog-body ol {
    margin: 0 0 24px 24px;
    padding-left: 10px;
}

.blog-body li {
    margin-bottom: 8px;
}

.blog-body strong {
    color: #ffffff;
    font-weight: 700;
}

/* Callouts & Quotes */
.blog-body blockquote {
    border-left: 4px solid #3b82f6; /* Blue border */
    background: #0f172a; /* Dark Blue-Black box */
    padding: 18px 22px;
    margin: 30px 0;
    font-style: italic;
    color: #cbd5e1;
    border-radius: 0 10px 10px 0;
}

/* Inline Code & Code Blocks */
.blog-body code {
    background: #1e293b;
    color: #60a5fa; /* Light Blue code text */
    padding: 3px 8px;
    font-size: 0.9em;
    border-radius: 4px;
    font-family: Consolas, Monaco, "Courier New", monospace;
}

.blog-body pre {
    background: #030712; /* Pure Black code background */
    color: #f8fafc;
    border: 1px solid #1e293b;
    padding: 20px;
    border-radius: 10px;
    overflow-x: auto;
    margin: 24px 0;
}

.blog-body pre code {
    background: transparent;
    color: inherit;
    padding: 0;
}

/* Links */
.blog-body a {
    color: #3b82f6; /* Accent Blue */
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: color 0.2s ease;
}

.blog-body a:hover {
    color: #93c5fd;
}

/* Tables (If Gemini outputs tables) */
.blog-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 28px 0;
    font-size: 0.95rem;
}

.blog-body th, 
.blog-body td {
    border: 1px solid #1f293d;
    padding: 12px 16px;
    text-align: left;
}

.blog-body th {
    background-color: #1e293b;
    color: #ffffff;
}

.blog-body tr:nth-child(even) {
    background-color: #0d1527;
}

/* Footer & Social Share */
.blog-footer {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid #1f293d;
}

.share-section {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #94a3b8;
}

.share-btn {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 8px;
    background: #1e293b;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.85rem;
    border: 1px solid #334155;
    transition: all 0.2s ease;
}

.share-btn:hover {
    background: #2563eb; /* Royal Blue */
    border-color: #3b82f6;
    color: #ffffff;
    text-decoration: none;
}

/* Alerts / Error State */
.alert-box {
    padding: 16px;
    border-radius: 8px;
    margin: 20px 0;
}

.alert-box.error {
    background-color: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fca5a5;
}